﻿using BoatNGoat.Logic.Map;

namespace BoatNGoat
{
    class LocalMap : IMap
    {
        public LocalMap(Tile[,] tiles)
        {
            // Note: If tile was a reference type this would be bad,
            // we'd have a reference to the tiles on the server
            Tiles = (Tile[,])tiles.Clone();
        }

        public int Width
        {
            get { return Tiles.GetLength(0); }
        }

        public int Height 
        { 
            get { return Tiles.GetLength(1); } 
        }

        public Tile[,] Tiles { get; private set; }

        public MapCollisionData Collide(MapBox2 hitbox)
        {
            // Local simulation could use this later but not right now
            throw new System.NotImplementedException();
        }
    }
}
